﻿using Business.Models;
using Prism.Mvvm;
using System.Collections.Generic;

namespace Business.ViewModels
{
    public class InfoViewModel : BindableBase
    {
        public InfoViewModel()
        {
            DataList = GetList();
        }
        private List<CollectInfo> dataList;

        public List<CollectInfo> DataList
        {
            get { return dataList; }
            set { dataList = value; RaisePropertyChanged(); }
        }
        private List<CollectInfo> dataList1;

        public List<CollectInfo> DataList1
        {
            get { return dataList1; }
            set { dataList1 = value; RaisePropertyChanged(); }
        }

        public List<CollectInfo> collectInfos;


        public List<CollectInfo> CollectInfos
        {
            get { return collectInfos; }
            set { collectInfos = value; RaisePropertyChanged(); }
        }
        public List<CollectInfo> GetList()
        {
            collectInfos = new List<CollectInfo>();
            for (int i = 1; i < 30; i++)
            {
                collectInfos.Add(new CollectInfo()
                {
                    Id = i,
                    Name = $"阳泉市规划院{i}",
                    Lxr = $"武中华{i}",
                    ProductName = $"兼容机{i}"
                });
            }

            return collectInfos;
        }

    }
}
